package bingosoft.metro.datasync.uuap;

import bingosoft.metro.datasync.uuap.client.service.DataClientService;
import leap.core.AppContext;

/**
 * @author Feily
 * @功能描述 UUAP客户端工厂类
 * @创建时间 2018-08-01
 */
public class UuapClientFactory {

	/**
	 * 获取UUAP客户端服务类
	 * @return UUAP客户端服务类
	 */
	public static DataClientService getDataClientService() {
		String serverPath = AppContext.config().getProperty("uuap.serverPath");
		String appToken = AppContext.config().getProperty("uuap.appCode");

		DataClientService dataClientService = new DataClientService();
		dataClientService.setServerPath(serverPath );
		dataClientService.setAppToken(appToken);
		return dataClientService;
	}

}
